package com.nsqt.banquan.service.impl;

import com.nsqt.banquan.dao.WorkDao;
import com.nsqt.banquan.domain.WorkDO;
import com.nsqt.banquan.service.WorkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class WorkServiceImpl implements WorkService {
    @Autowired
    private WorkDao workDao;

    @Override
    public WorkDO get(Integer id) {
        return workDao.get(id);
    }

    @Override
    public WorkDO getBySn(String sn) {
        return workDao.getBySn(sn);
    }

    @Override
    public List<WorkDO> list(Map<String, Object> map) {
        return workDao.list(map);
    }

    @Override
    public List<WorkDO> listExcel(Map<String, Object> map) {
        return workDao.listExcel(map);
    }

    @Override
    public List<WorkDO> exportApproval(Map<String, Object> map) {
        return workDao.exportApproval(map);
    }

    @Override
    public List<WorkDO> listUnsubmit(Map<String, Object> map) {
        return workDao.listUnsubmit(map);
    }

    @Override
    public List<WorkDO> listApproval(Map<String, Object> map) {
        return workDao.listApproval(map);
    }

    @Override
    public int count(Map<String, Object> map) {
        return workDao.count(map);
    }

    @Override
    public int countUnsubmit(Map<String, Object> map) {
        return workDao.countUnsubmit(map);
    }

    @Override
    public int countPresubmit(Map<String, Object> map) {
        return workDao.countUnsubmit(map);
    }

    @Override
    public int countApproval(Map<String, Object> map) {
        return workDao.countApproval(map);
    }

    @Override
    public int save(WorkDO software) {
        return workDao.save(software);
    }

    @Override
    public int update(WorkDO software) {
        return workDao.update(software);
    }

    @Override
    public int remove(Integer id) {
        return workDao.remove(id);
    }

    @Override
    public int approval(Integer id) {
        return workDao.approval(id);
    }

    @Override
    public int mail(String sn) {
        return workDao.mail(sn);
    }

    @Override
    public int approval(String sn) {
        return workDao.bapproval(sn);
    }

    @Override
    public int unApproval(Integer id) {
        return workDao.unApproval(id);
    }

    @Override
    public int batchRemove(Integer[] ids) {
        return workDao.batchRemove(ids);
    }

    @Override
    public int preSubmit(String sn) {
        return workDao.preSubmit(sn);
    }

    ;

    @Override
    public int cancelSubmit(Integer id) {
        return workDao.cancelSubmit(id);
    }

    ;

    @Override
    public int batchSubmit(Integer[] ids) {
        return workDao.batchSubmit(ids);
    }

    ;

}
